# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=gpscorrelate
pkgver=2.0_git20230605
_githash=fd556bc0cf9341511036f0535e76a50c1f50dcec
pkgrel=0
pkgdesc="Program to match GPS tracks to photographs and store the matches in EXIF"
url="https://dfandrich.github.io/gpscorrelate/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	desktop-file-utils
	exiv2-dev
	gettext-dev
	gtk+3.0-dev
	intltool
	libintl
	libxml2-dev
	libxslt-dev
	"
subpackages="$pkgname-cli $pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/dfandrich/gpscorrelate/archive/$_githash.tar.gz
	exiv2-0.28.patch
	"
builddir="$srcdir/$pkgname-$_githash"

build() {
	make all build-po
}

check() {
	make check
}

package() {
	make install install-desktop-file install-po DESTDIR="$pkgdir" prefix=/usr
}

cli() {
	pkgdesc="$pkgdesc (cli only)"
	amove /usr/bin/gpscorrelate
}

sha512sums="
6baaf62180aaa86a0d0989808e206030d0d313428c6e51aaabb9b5ded7ecc836a91a8f9ac28b5b04f0a8f2f2d61fe53fc8d8a7d55da20d7f04c2a18ac875ef86  gpscorrelate-2.0_git20230605.tar.gz
15ff7a1b48ac65c8a94928bf269a5c077b198a1c246a1c07a0b2749c7b228be13613e4816538542cb8e8dd6c29a3738ffe3cf67ea00e8075272f6de4229d7d5b  exiv2-0.28.patch
"
